package com.jic.manager.mapper;

import java.lang.Long;
import java.util.List;

import com.jic.manager.entity.Certificate;
import com.jic.manager.request.CertificateRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 资质文件表
 * @author : 
 * @email : 
 * @since : 2020-02-26 09:41:21
 * @version : v1.0.0
 */
@Repository
@Mapper
public interface  CertificateMapper {

    long insert(Certificate certificate);

    long delete(Long id);

    long update(Certificate certificate);

    Certificate queryByPrimaryKey(Long id);

    List<Certificate> query(Certificate certificate);

    List<Certificate> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("certificate") Certificate certificate);

    long queryPageCount(Certificate certificate);

    void deleteListByTypeAndOrgId(Certificate certificate);

    void insertMCertificateList(List<CertificateRequest> mCertificateVos);
}